package com.xx.doublexchat.common.weixin.adapter;

import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutTextMessage;

public class TextBuilder {
    public static WxMpXmlOutMessage build(String content, WxMpXmlMessage wxMpXmlMessage) {
        WxMpXmlOutTextMessage outTextMessage = WxMpXmlOutMessage.TEXT().content(content)
                .fromUser(wxMpXmlMessage.getToUser()).toUser(wxMpXmlMessage.getFromUser()).build();
        return outTextMessage;
    }
}
